<?php
require_once'funzioni.php';
require_once'config.php';
if (isset($_GET['lang']))
{
	if($_GET['lang']=='it' || $_GET['lang']=='en')
	{
		$lang=$_GET['lang'];
	}
	else{
		$lang='it';
		}
}
else
{
		$lang='it';
}
if (isset($_GET['section']))
{
	if(isCorrectSection($_GET['section']))
	{
		$section=$_GET['section'];
	}
	else
	{
		//todo
	}
}
else
{
	//todo
}
if(isset($id) && isset($lang))
{
	$pages=getAllPagesBySection($section, $lang);
}

include 'views/header.php';
include 'views/renderListPages.php';
include 'views/footer.php';